#ifndef ORDERSWIDGET_H
#define ORDERSWIDGET_H

#include <QDockWidget>
#include <QTableWidget>
#include <QTabWidget>
#include <QLabel>

#include "core/order/ordermanager.h"
#include "accountwidget.h"
#include "orderstablewidget.h"
#include "updownwidget.h"

class OrdersWidget : public QDockWidget, public OrdersListener
{
    Q_OBJECT

public:
    OrdersWidget(QWidget *parent = 0);
    void onCurrOrdersChanged();
    void onHistOrdersChanged();

protected:
    void updateCurrOrdersTable();
    void updateHistOrdersTable();
    QTabWidget *m_tabWidget;
    OrdersTableWidget *m_histTableWidget;
    OrdersTableWidget *m_currTableWidget;
    AccountWidget *m_accountWidget;
    UpDownWidget *m_upDownWidget;
    QLabel *m_accountLabel;
};

#endif
